import fetch from '@/utils/fetch';

export const listImages = (data) => {
  return fetch({
    url: '/web-admin/images/listImages',
    method: 'POST',
    data,
  });
};

export const getMaterialListImages = (data) => {
  return fetch({
    url: '/web-admin/images/getMaterialListImages',
    method: 'POST',
    data,
  });
};

export const pageListImages = (data) => {
  return fetch({
    url: '/web-admin/images/pageListImages',
    method: 'POST',
    data,
  });
};

export const pageUserListImages = (data) => {
  return fetch({
    url: '/web-admin/images/pageUserListImages',
    method: 'POST',
    data,
  });
};

export const listGroup = (data) => {
  return fetch({
    url: '/web-admin/images/listGroup',
    method: 'POST',
    data,
  });
};

export const getMaterialListGroup = (data) => {
  return fetch({
    url: '/web-admin/images/getMaterialListGroup',
    method: 'POST',
    data,
  });
};

export const listUserGroup = (data) => {
  return fetch({
    url: '/web-admin/images/listUserGroup',
    method: 'POST',
    data,
  });
};

export const editeStatus = (data) => {
  return fetch({
    url: '/web-admin/images/editeStatus',
    method: 'POST',
    data,
  });
};

export const createImages = (data) => {
  return fetch({
    url: '/web-admin/images/createImages',
    method: 'POST',
    data,
  });
};

export const batchEditeImages = (data) => {
  return fetch({
    url: '/web-admin/images/batchEditeImages',
    method: 'POST',
    data,
  });
};

export const createGroup = (data) => {
  return fetch({
    url: '/web-admin/images/createGroup',
    method: 'POST',
    data,
  });
};

export const editeGroup = (data) => {
  return fetch({
    url: '/web-admin/images/editeGroup',
    method: 'POST',
    data,
  });
};

export const deleteGroup = (data) => {
  return fetch({
    url: '/web-admin/images/deleteGroup',
    method: 'POST',
    data,
  });
};
